import request from '@/utils/request'

// 领取优惠券
export function newMemberCoupon(userId, phone) {
  return request({
    url: 'coupon/newMemberCoupon',
    method: 'POST',
    data: {
      userId,
      phone
    }
  })
}

export function tsCoupon(price, storeId, userId) {
  return request({
    url: 'memberShipCard/getCode',
    method: 'POST',
    data: {
      price,
      storeId,
      userId
    }
  })
}
